package com.feihong.txgw.adapter.Holder;

import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.feihong.txgw.R;
import com.feihong.txgw.inter.listener.share.ShareTypeListener;
import com.feihong.txgw.model.bean.share.SharePlatformEntity;

/**
 * @name txgw_app
 * @class name：com.feihong.txgw.adapter.Holder
 * @class describe:
 * @author wangziheng
 * @time 2017/9/18 11:30
 * @change
 * @chang time
 * @class describe
 */
public class SharePlatformViewHolder extends BaseViewHolder {

    private ImageView mShareItemImg;
    private TextView mShareItemName;
    public SharePlatformViewHolder(View itemView) {
        super(itemView);
        mShareItemImg = (ImageView) itemView.findViewById(R.id.share_item_img);
        mShareItemName = (TextView) itemView.findViewById(R.id.share_item_name);
    }

    public void initData(SharePlatformEntity sharePlatformEntity){
        mShareItemName.setText(sharePlatformEntity.getmPlatformName());
        mShareItemImg.setImageDrawable(sharePlatformEntity.getmPlatfromImg());
    }
}
